home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigantic Games 2
/
Gigantic Games 2.iso
/
pc
/
_w_
/
wordsearch
/
src
/
request.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-12-23
|
874b
|
44 lines
#include <exec/types.h>
#include <proto/exec.h>
#include <proto/intuition.h>
#include <proto/graphics.h>
#include <proto/dos.h>
#include <intuition/intuition.h>
#include <graphics/display.h>
struct Window *Requestor_Window;
struct message *m=NULL;
struct IntuiText chip Body_Text =
{0, 1, JAM1, 5, 10, NULL, (UBYTE *) "Click to abort New Key", NULL};
struct IntuiText chip Abort_Text =
{0, 1, JAM1, 5, 3, NULL, (UBYTE *) "Abort", NULL};
void open_requestor()
{
Requestor_Window = BuildSysRequest
(NULL, &Body_Text, NULL, &Abort_Text, GADGETUP, 280L, 60L);
}
void close_requestor()
{
while(m!=NULL)
{
ReplyMsg(m);
m = GetMsg(Requestor_Window->UserPort);
}
FreeSysRequest (Requestor_Window);
}
BOOL Stop_Flag()
{
if(m==NULL)
m = GetMsg(Requestor_Window->UserPort);
if(m==NULL)
return(FALSE);
else
return(TRUE);
}